package com.lovo.invoicing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.invoicing.bean.PageBean;
import com.lovo.invoicing.bean.SaleInfoBean;
import com.lovo.invoicing.bean.vo.SaleGoodsBean;
import com.lovo.invoicing.bean.vo.SaleInfoSaleBean;
import com.lovo.invoicing.bean.vo.SaleMonthBean;
import com.lovo.invoicing.bean.vo.SaleTypeBean;

import java.util.List;

public interface ISaleInfoService {
    IPage<SaleInfoBean> querySaleInfoByPage(PageBean<SaleInfoBean> pageBean);

    List<SaleInfoSaleBean> queryBySaleInfoId(int saleInfoId);

    List<SaleTypeBean> queryTypeTotal(String startDate,String endDate);

    List<SaleGoodsBean> queryNameTotal(String startDate,String endDate);


    int addSaleInfo(SaleInfoBean saleInfoBean);

    List<String> queryAllSaleYears();

    List<Double> queryComputerPrices(String saleYear);

    List<Double> querySecurityPrices(String saleYear);
    List<Double> queryWorkPrices(String saleYear);

    List<String> queryMonthsBySaleYear(String saleYear);
}
